﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageManifest.aspx.cs" Inherits="Sharepoint.PageManifestExtractor.PageManifest" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript" >
        window.onload = function () {
            HidePageManifest(false);
        };

        function HidePageManifest(HidePageManifest) {
            var pageManifestElement = document.getElementById('<%=txtPageManifest.ClientID%>');
            var pageContentElement = document.getElementById('<%=txtPageContent.ClientID%>');
            var pageManifestButton = document.getElementById('<%=buttonPageManifest.ClientID%>');
            var pageContentButton = document.getElementById('<%=buttonPageContent.ClientID%>');

            if (HidePageManifest) {
                pageManifestElement.style.display = 'none'; pageManifestButton.style.fontWeight = 'normal';
                pageContentElement.style.display = 'block'; pageContentButton.style.fontWeight = 'bold';
            }
            else {
                pageManifestElement.style.display = 'block'; pageManifestButton.style.fontWeight = 'bold';
                pageContentElement.style.display = 'none'; pageContentButton.style.fontWeight = 'normal';
            }
        }
    </script>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server"> 
    <asp:LinkButton ID="buttonPageManifest" Text="<%$Resources:PageManifestExtractor, ButtonTextPageManifest%>"  runat="server" OnClientClick="HidePageManifest(false);return false;" /> | 
    <asp:LinkButton ID="buttonPageContent" Text="<%$Resources:PageManifestExtractor, ButtonTextPageContent%>"  runat="server" OnClientClick="HidePageManifest(true);return false;" /> 
    <asp:TextBox ID="txtException" Visible="false" runat="server" ForeColor="Red" BorderStyle="None" BorderWidth="0px" TextMode="MultiLine" ReadOnly="true" Width="100%" /> 
    <asp:TextBox ID="txtPageManifest" runat="server" CssClass="PageManifest" TextMode="MultiLine" ReadOnly="true" Width="100%" Height="500px" />
    <asp:TextBox ID="txtPageContent" runat="server" CssClass="PageContent" TextMode="MultiLine" ReadOnly="true" Width="100%" Height="500px" />
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal runat="server" Text="<%$Resources:PageManifestExtractor, PageManifestText%>" />
</asp:Content>


<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
    <asp:Literal runat="server" Text="<%$Resources:PageManifestExtractor, PageManifestText%>" />
</asp:Content>
